package com.ruoyi.approval.service;

import java.util.List;
import com.ruoyi.approval.domain.AApprovalRequests;
import com.ruoyi.approval.dto.ApprovalRequestsDto;
import com.ruoyi.approval.param.AddApprovalRequestsParam;
import com.ruoyi.approval.param.UpdateApprovalRequestsParam;
import com.ruoyi.system.api.domain.SysUser;

/**
 * 审批请求Service接口
 *
 * @author ruoyi
 * @date 2025-04-02
 */
public interface IAApprovalRequestsService
{
    /**
     * 查询审批请求
     *
     * @param id 审批请求主键
     * @return 审批请求
     */
    public ApprovalRequestsDto selectAApprovalRequestsById(Long id);

    /**
     * 查询审批请求列表
     *
     * @param aApprovalRequests 审批请求
     * @return 审批请求集合
     */
    public List<AApprovalRequests> selectAApprovalRequestsList(AApprovalRequests aApprovalRequests);

    /**
     * 新增审批请求
     *
     * @param param 审批请求
     * @return 结果
     */
    public int insertAApprovalRequests(AddApprovalRequestsParam param, SysUser user);

    /**
     * 拒绝审批请求
     *
     * @param param 拒绝审批请求
     * @return 结果
     */
    public int updateAApprovalRequests(UpdateApprovalRequestsParam param, SysUser user);

    /**
     * 批量删除审批请求
     *
     * @param ids 需要删除的审批请求主键集合
     * @return 结果
     */
    public int deleteAApprovalRequestsByIds(Long[] ids);

    /**
     * 通过审批请求信息
     *
     * @param id 审批请求主键
     * @return 结果
     */
    public int deleteAApprovalRequestsById(Long id, SysUser user);
}
